(function() {
    'use strict';

    angular
        .module('hengha.blue')
        .config(blueRoute);

    blueRoute.$inject = ['$routeProvider'];

    function blueRoute($routeProvider) {
        $routeProvider.when('/', {
            templateUrl: 'app/blue/home.html',
            controller: 'HomeController',
            controllerAs: 'vm'
        });

        $routeProvider.when('/categories/:slug',{
            templateUrl: 'app/blue/categories.html',
            controller: 'CategoriesController',
            controllerAs: 'vm'
        });

        $routeProvider.when('/nodes/:id',{
            templateUrl: 'app/blue/node.html',
            controller: 'NodeController',
            controllerAs: 'vm'
        });
    };
})()

